import Stock from "@/views/stock";
import GoodsWarehousing from "@/views/stock/GoodsWarehousing";
import Transfer from "@/views/stock/transfer";
import Outof from "@/views/stock/outof";
import InventoryChecking from "@/views/stock/InventoryChecking";
import Inventory from "@/views/stock/inventory";
import InventoryDetails from "@/views/stock/inventoryDetails";


const stockRoutes = [{
    path: "stock",
    component: Stock,
    redirect: "stock/goodsWarehousing",
    //嵌套路由
    children: [
        {
            path: "goodsWarehousing",
            component: GoodsWarehousing
        },
        {
            path: "transfer",
            component: Transfer
        },
        {
            path: "outof",
            component: Outof
        },
        {
            path: "inventoryChecking",
            component: InventoryChecking
        },
        {
            path: "inventory",
            component: Inventory
        },
        {
            path: "inventoryDetails",
            component: InventoryDetails
        }
    ]
}]

export default stockRoutes